import request from '@/utils/request'

// 查询考试小题选项列表
export function listExamPaperTopicOption(query) {
  return request({
    url: '/exam/examPaperTopicOption/list',
    method: 'get',
    params: query
  })
}

// 查询考试小题选项详细
export function getExamPaperTopicOption(id) {
  return request({
    url: '/exam/examPaperTopicOption/' + id,
    method: 'get'
  })
}

// 新增考试小题选项
export function addExamPaperTopicOption(data) {
  return request({
    url: '/exam/examPaperTopicOption',
    method: 'post',
    data: data
  })
}

// 修改考试小题选项
export function updateExamPaperTopicOption(data) {
  return request({
    url: '/exam/examPaperTopicOption',
    method: 'put',
    data: data
  })
}

// 删除考试小题选项
export function delExamPaperTopicOption(id) {
  return request({
    url: '/exam/examPaperTopicOption/' + id,
    method: 'delete'
  })
}
